package com.yyq.sos.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * SsSysLogs entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ss_sys_logs")
public class SysLogs extends BackBaseEntity implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3365285098908843252L;
	private Long userId;
	private String userName;
	private String userCname;
	private String tableName;
	private String actionType;
	private Date beginTime = new Date();
	private java.sql.Blob logContext;
	private String actionResult;
	private String remark;

	

	public SysLogs() {
	}

	/** minimal constructor */
	public SysLogs(Long logId) {
		this.id = logId;
	}

	/** full constructor */
	public SysLogs(Long logId, String userName, String userCname, String tableName,
			String actionType, Date beginTime,
			String actionResult, String remark) {
		this.id = logId;
		this.userName = userName;
		this.userCname = userCname;
		this.tableName = tableName;
		this.actionType = actionType;
		this.beginTime = beginTime;
		this.actionResult = actionResult;
		this.remark = remark;
	}

	// Property accessors

	@Column(name = "user_id", nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "user_name", length = 40)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Transient
	public String getUserCname() {
		return this.userCname;
	}

	public void setUserCname(String userCname) {
		this.userCname = userCname;
	}


	@Column(name = "table_name", length = 40)
	public String getTableName() {
		return this.tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}


	@Column(name = "action_type", length = 40)
	public String getActionType() {
		return this.actionType;
	}

	public void setActionType(String actionType) {
		this.actionType = actionType;
	}

	@Column(name = "begin_time")
	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}


	@Column(name = "log_context")
	public java.sql.Blob getLogContext() {
		return this.logContext;
	}

	public void setLogContext(java.sql.Blob logContext) {
		this.logContext = logContext;
	}

	@Column(name = "action_result")
	public String getActionResult() {
		return this.actionResult;
	}

	public void setActionResult(String actionResult) {
		this.actionResult = actionResult;
	}

	@Transient
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}